﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HospitalCaseScan
{
    public partial class frmUserManagement : Form
    {
        public frmUserManagement()
        {
            InitializeComponent();
            BindUserList();
        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {
            MessageBox.Show("用户已经添加！");
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        public void BindUserList()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("序号");
            dt.Columns.Add("中文名");
            dt.Columns.Add("创建时间");
            dt.Columns.Add("创建人");
            dt.Columns.Add("最后登录时间"); 
            dt.Columns.Add("状态");

            dt.Rows.Add("1", "职员A", "2012-07-01", "管理员", "2012-07-02", "活跃" );
            dt.Rows.Add("2", "职员B", "2012-07-01", "管理员", "2012-07-02", "活跃" );
            dt.Rows.Add("3", "职员C", "2012-07-01", "管理员", "2012-07-02", "活跃" );
            dt.Rows.Add("4", "职员D", "2012-07-01", "管理员", "2012-07-02", "不活跃" );
            dt.Rows.Add("5", "职员E", "2012-07-01", "管理员", "2012-07-02", "活跃" );
            dt.Rows.Add("6", "职员F", "2012-07-01", "管理员", "2012-07-02", "活跃" );

            GVUserList.DataSource = dt;

        }
    }
}
